<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sdQuotationCustContactBean.id}"/>
		<f:event type="preRenderView" listener="#{sdQuotationCustContactBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sd Quotation Cust Contact"/>

	<ui:define name="header">
		Sd Quotation Cust Contact
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sdQuotationCustContactBean.id}">
				Edit existing Sd Quotation Cust Contact
			</c:when>
			<c:otherwise>
				Create a new Sd Quotation Cust Contact
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sdQuotationCustContactBeanSdQuotationCustContactSdQuotation" value="Sd Quotation:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sdQuotationBean.converter}" id="sdQuotationCustContactBeanSdQuotationCustContactSdQuotation" value="#{sdQuotationCustContactBean.sdQuotationCustContact.sdQuotation}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdQuotationBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdQuotationCustContactBeanSdQuotationCustContactSdQuotation" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustContactBeanSdQuotationCustContactSysTitleName" value="Sys Title Name:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysTitleNameBean.converter}" id="sdQuotationCustContactBeanSdQuotationCustContactSysTitleName" value="#{sdQuotationCustContactBean.sdQuotationCustContact.sysTitleName}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTitleNameBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdQuotationCustContactBeanSdQuotationCustContactSysTitleName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactFirstName" value="Qt Cust Contact First Name:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactFirstName" maxLength="50" value="#{sdQuotationCustContactBean.sdQuotationCustContact.qtCustContactFirstName}"/>
					<h:message for="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactFirstName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactMidName" value="Qt Cust Contact Mid Name:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactMidName" maxLength="50" value="#{sdQuotationCustContactBean.sdQuotationCustContact.qtCustContactMidName}"/>
					<h:message for="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactMidName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactLastName" value="Qt Cust Contact Last Name:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactLastName" maxLength="50" value="#{sdQuotationCustContactBean.sdQuotationCustContact.qtCustContactLastName}"/>
					<h:message for="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactLastName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactPhoneNo" value="Qt Cust Contact Phone No:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactPhoneNo" maxLength="20" value="#{sdQuotationCustContactBean.sdQuotationCustContact.qtCustContactPhoneNo}"/>
					<h:message for="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactPhoneNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactMobileNo" value="Qt Cust Contact Mobile No:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactMobileNo" maxLength="20" value="#{sdQuotationCustContactBean.sdQuotationCustContact.qtCustContactMobileNo}"/>
					<h:message for="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactMobileNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactEmail" value="Qt Cust Contact Email:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactEmail" maxLength="100" value="#{sdQuotationCustContactBean.sdQuotationCustContact.qtCustContactEmail}"/>
					<h:message for="sdQuotationCustContactBeanSdQuotationCustContactQtCustContactEmail" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sdQuotationCustContactBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sdQuotationCustContactBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sdQuotationCustContactBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sdQuotationCustContactBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>